package com.share51.novel.security.constant;

/**
 * 安全配置相关常量
 * @author gb
 */
public interface SecurityConstant {

    String USER_IS_LOGIN="user-is-login";

    /**
     * 百度蜘蛛 移动端 user-agent
     */
    String MOBILE_USER_AGENT="Mozilla/5.0 (Linux;u;Android 4.2.2;zh-cn;) AppleWebKit/534.46 (KHTML,likeGecko) Version/5.1 Mobile Safari/10600.6.3 (compatible; Baiduspider/2.0;+http://www.baidu.com/search/spider.html)";

    /**
     * 百度蜘蛛 pc 端 user-agent
     */
    String PC_USER_AGENT="Mozilla/5.0 (compatible; Baiduspider/2.0;+http://www.baidu.com/search/spider.html)";

    /**
     * user-agent 中包含 其中任意一个就可以访问
     */
    String[] CONTAIN_ALLOW_USER_AGENT={
            "baidu",
            "google",
            "360",
            "soso",
            "yahoo",
            "youdao","yodao",
            "sogou",
            "msn",
            "bing",
            "yisou",
            "easou",
            "jike",
            "etao",
            "spider"
    };

}
